package com.qf.cx.simplenms.link.rai.model;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.sun.jna.Structure;

public class RwPara extends Structure {
	
	public Antenna antenna = new Antenna();
	public TagMaskInfo[] tagMaskInfo = new TagMaskInfo[2];
	public int opNum;
	public RwOpInfo[] rwOpInf = new RwOpInfo[RaiLimit.MAX_OP_NUM];
	
	{
		for(int i = 0; i < 2; i++)
		{
			
			tagMaskInfo[i] = new TagMaskInfo();
		}
		for(int i = 0; i < RaiLimit.MAX_OP_NUM; i ++)
		{
			rwOpInf[i] = new RwOpInfo();
		}		
	}
	
	
	public static class ByValue  extends RwPara implements Structure.ByValue{ }		
	public static class ByReference extends RwPara implements Structure.ByReference{ }
	
    @Override  
    protected List<String> getFieldOrder() {  
        List<String> a = new ArrayList<String>();  
        a.add("antenna");   
        a.add("tagMaskInfo");  
        a.add("opNum");
        a.add("rwOpInf");   
        return a;  
    }

	@Override
	public String toString() {
		return "RwPara [antenna=" + antenna + ", tagMaskInfo=" + Arrays.toString(tagMaskInfo) + ", opNum=" + opNum
				+ ", rwOpInf=" + Arrays.toString(rwOpInf) + "]";
	} 
    
    

}
